/**
 * 接口列表文件
 */

// let apiRoot = 'https://life.163.org/api/';
// let apiurl = 'http://163.cc/api/';
export default {

	/** 公共 ↓ **/
	common: {
		banners: {
			url: 'banners/index',
			auth: false,
			method: 'GET'
		},
		sysconfig:{
			url: 'Base/sysconfig',
			auth: false,
			method: 'GET'
		},
		uuid:{
			url: 'Base/getUuid',
			auth: false,
			method: 'GET'
		}
	},

	/** 分类 ↓ **/
	category: {
		index: {
			url: 'cats/index',
			auth: false,
			method: 'GET',
			// desc: '分类类别',
		},
		detail: {
			url: 'Sys.Cats/index',
			auth: false,
			method: 'GET',
			// desc: '分类详情',
		}
	},

	users:{
		
		login:{
			url: 'Users/login',
			auth: false,
			method: 'post',
		},
		update:{
			url: 'Users/update',
			auth: true,
			method: 'post',
		}
	},


	articles:{
		index: {
			url: 'articles/index',
			auth: false,
			method: 'GET',
			// desc: '订单列表',
		},
		view: {
			url: 'articles/view',
			auth: false,
			method: 'GET',
			// desc: '订单列表',
		},
		
	},
	orders:{
		add: {
			url: 'orders/add',
			auth: true,
			method: 'POST',
		},
		pay: {
			url: 'orders/pay',
			auth: true,
			method: 'POST',
		},
		view: {
			url: 'orders/view',
			auth: true,
			method: 'get',
		},
		shop_view: {
			url: 'orders/shop_view',
			auth: true,
			method: 'get',
		},
		shop_update: {
			url: 'orders/shop_update',
			auth: true,
			method: 'post',
		},
		
	}







};
